package stud.mpgame.network.service.ping;

import stud.mpgame.network.MessageDescription;

/**
 * @author f.pavel91@gmail.com
 * @version 1.0
 */
public class PingNotificationMessageDescription extends MessageDescription {

    private static final int ID = -3; //negative value for special tasks

    public static final int pingNotificationUserObjectID = 1;

    public int getID() {
        return ID;
    }

    private static PingNotificationMessageDescription instance = null;

    private PingNotificationMessageDescription() {
        this.registerUserObject(pingNotificationUserObjectID, PingNotificationUserObject.class);
    }

    public static PingNotificationMessageDescription getInstance() {
        if(instance == null) {
            instance = new PingNotificationMessageDescription();
            MessageDescription.registerDescription(instance);
        }
        return instance;
    }

}
